package com.ruoyi.resturant.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;


@ApiModel(value = "店铺实体", description = "店铺实体")
public class ResShop
    {
        private static final long serialVersionUID = 1L;

        /** 编号 */
        @ApiModelProperty("编号")
        private Long id;

        /** 店铺名称 */
        @ApiModelProperty("店铺名称")
        @NotNull(message="店铺不存在")
        private String name;

        /** 店铺地址 */
        @ApiModelProperty("店铺地址")
        private String address;

        /** 联系电话 */
        @ApiModelProperty("联系电话")
        @NotBlank(message = "联系电话不能为空")
        @Size(min = 2, max = 13, message = "联系电话长度必须在2到13个字符之间")
        private String contact;

        /** 封面 */
        @ApiModelProperty("封面")
        private String cover;

        /** 店铺详情 */
        @ApiModelProperty("店铺详情")
        private String detail;

        /** 创建者 */
        @ApiModelProperty("创建者")
        private String createBy;

        /** 创建时间 */
        @ApiModelProperty("创建时间")
        private Date createTime;

        /** 更新者 */
        @ApiModelProperty("更新者")
        private String updateBy;

        /** 更新时间 */
        @ApiModelProperty("更新时间")
        private Date updateTime;

        public ResShop(Long id, Date createTime, String updateBy, Date updateTime) {
            this.id = id;
            this.createTime = createTime;
            this.updateBy = updateBy;
            this.updateTime = updateTime;
        }

        /** 评分 */
        @ApiModelProperty("评分")
        private int star;

        /** 店主id */
        @ApiModelProperty("店主id")
        private Long owner_Id;

        public ResShop() {
        }


        public ResShop(Long id, String name, String address, String contact)
        {
            this.id = id;
            this.name = name;
            this.address = address;
            this.contact = contact;
        }

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getContact() {
            return contact;
        }

        public void setContact(String contact) {
            this.contact = contact;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public int getStar() {
            return star;
        }

        public void setStar(int star) {
            this.star = star;
        }

        public Long getOwnerId() {
            return owner_Id;
        }

        public void setOwnerId(Long ownerId) {
            this.owner_Id = ownerId;
        }

        public String getCreateBy() {
            return createBy;
        }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
        }

        public Date getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }

        public String getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
        }

        public Date getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
        }

        public Long getOwner_Id() {
            return owner_Id;
        }

        public void setOwner_Id(Long owner_Id) {
            this.owner_Id = owner_Id;
        }
    }

